
//sessionStorage 存储数据
export function setSessionStorage(KeyStr,value){

    sessionStorage.setItem(KeyStr,JSON.stringify(value))
}

//sessionStorage 获取数据
export function getSessionStorage(KeyStr){
    var str = sessionStorage.getItem(KeyStr)

    if(str == null || str=="" || str=='null' || str==undefined){
        return null
    }else{
        return JSON.parse(str)
    }
}

//移除数据
export function removeSessionStorage(KeyStr){
    sessionStorage.removeItem(KeyStr)
}